+2008-06-03 Jan Heller <jheller@svn.gnome.org>
+
+ babl_get_version () moved into separate source file.
+
+ * babl/Makefile.am: Added babl-version.c.
+ * babl/babl-version.c (babl_get_version): Implemented.
+ * babl/babl-version.h.in: Added babl_get_version () declaration.
+ * babl/babl.c (babl_destroy): Removed babl_get_version ().
+ * babl/babl.h: Removed babl_get_version () declaration.
+
2008-06-03 Jan Heller <jheller@svn.gnome.org>
* babl/babl-version.h.in: Added.
--- /dev/null
+/* babl - dynamically extendable universal pixel conversion library.
+ * Copyright (C) 2005-2008, Øyvind Kolås and others.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General
+ * Public License along with this library; if not, see
+ * <http://www.gnu.org/licenses/>.
+ */
+
+#include "babl-internal.h"
+
+
+void
+babl_get_version (int *major,
+ int *minor,
+ int *micro)
+{
+ if (major != NULL)
+ *major = BABL_MAJOR_VERSION;
+
+ if (minor != NULL)
+ *minor = BABL_MINOR_VERSION;
+
+ if (micro != NULL)
+ *micro = BABL_MICRO_VERSION;
+}
#define BABL_MINOR_VERSION @BABL_MINOR_VERSION@
#define BABL_MICRO_VERSION @BABL_MICRO_VERSION@
+/** Get the version information on the babl library */
+void babl_get_version (int *major,
+ int *minor,
+ int *micro);
+
#endif
babl_memory_sanity ();
}
}
-
-void
-babl_get_version (int *major,
- int *minor,
- int *micro)
-{
- if (major != NULL)
- *major = BABL_MAJOR_VERSION;
-
- if (minor != NULL)
- *minor = BABL_MINOR_VERSION;
-
- if (micro != NULL)
- *micro = BABL_MICRO_VERSION;
-}
*/
void babl_destroy (void);
-/** Get the version information on the babl library */
-void babl_get_version (int *major,
- int *minor,
- int *micro);
-
#if __GNUC__ >= 4
#define BABL_ARG_NULL_TERMINATED __attribute__((__sentinel__))
#else